<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ page import="java.util.*"%>
<%@ page import="com.siemens.operation.*" %>

<html>
	<head>
		<meta http-equiv="Content-Language" content="zh-cn">
		<meta http-equiv="Content-Type" content="text/html; utf-8">
		<meta name="description" content="配置管理">
		<title>配置管理</title>
	</head>

	<body>
		<br>
		<center><h2>配&nbsp;&nbsp;&nbsp;置&nbsp;&nbsp;&nbsp;管&nbsp;&nbsp;&nbsp;理</h2></center>
		<hr />
		
		<center><h3>Group配置管理</h3></center>
		<table cellpadding=3 cellspacing=1 align=center class=tableborder1
			border="0" width="98%">
			<tr>
				<td valign=middle align=center height=25 width=25% background="images/bg2.gif"
					width="">
					<font color="#ffffff"><b>序 号</b>
					</font>
				</td>
				<td valign=middle align=center height=25 width=40% background="images/bg2.gif"
					width="">
					<font color="#ffffff"><b>配置项</b>
					</font>
				</td>
				<td valign=middle align=center height=25 width=35% background="images/bg2.gif"
					width="">
					<font color="#ffffff"><b>配置值</b>
					</font>
				</td>
			</tr>

			<%
				List<ConfigEntity> group = PropertiesConfig.getGroup();
				int groupId = 0;
				Iterator ig = group.iterator();
				ConfigEntity c = null;
				
				while(ig.hasNext()){
					++groupId;
					c = (ConfigEntity)ig.next();
					String name = c.getName();
					String value = c.getValue();
			%>
			
			<tr>
				<td class=tablebody2 valign=middle align=center width=""><%=groupId%></td>
				<td class=tablebody1 valign=middle width=""><%=name%></td>
				<td class=tablebody2 align="center" valign=middle width=""><%=value%></td>
			</tr>
			<%
				}
			%>
		</table>
		<br>
		<br>
		
		<center><h3>IM配置管理</h3></center>
		<table cellpadding=3 cellspacing=1 align=center class=tableborder1
			border="0" width="98%">
			<tr>
				<td valign=middle align=center height=25 width=25% background="images/bg2.gif"
					width="">
					<font color="#ffffff"><b>序 号</b>
					</font>
				</td>
				<td valign=middle align=center height=25 width=40% background="images/bg2.gif"
					width="">
					<font color="#ffffff"><b>配置项</b>
					</font>
				</td>
				<td valign=middle align=center height=25 width=35% background="images/bg2.gif"
					width="">
					<font color="#ffffff"><b>配置值</b>
					</font>
				</td>
			</tr>

			<%
				List<ConfigEntity> im = PropertiesConfig.getIm();
				int imId = 0;
				Iterator mi = im.iterator();
				while(mi.hasNext()){
					++imId;
					c = (ConfigEntity)mi.next();
					String name = c.getName();
					String value = c.getValue();
			%>
			
			<tr>
				<td class=tablebody2 valign=middle align=center width=""><%=imId%></td>
				<td class=tablebody1 valign=middle width=""><%=name%></td>
				<td class=tablebody2 align="center" valign=middle width=""><%=value%></td>
			</tr>
			<%
				}
			%>
		</table>
		
		<br>
		<br>
		<center><h3>Presence配置管理</h3></center>
		<table cellpadding=3 cellspacing=1 align=center class=tableborder1
			border="0" width="98%">
			<tr>
				<td valign=middle align=center height=25 width=25% background="images/bg2.gif"
					width="">
					<font color="#ffffff"><b>序 号</b>
					</font>
				</td>
				<td valign=middle align=center height=25 width=40% background="images/bg2.gif"
					width="">
					<font color="#ffffff"><b>配置项</b>
					</font>
				</td>
				<td valign=middle align=center height=25 width=35% background="images/bg2.gif"
					width="">
					<font color="#ffffff"><b>配置值</b>
					</font>
				</td>
			</tr>

			<%
				List<ConfigEntity> presence = PropertiesConfig.getPresence();
				int presenceId = 0;
				Iterator ip = presence.iterator();
				while(ip.hasNext()){
					++presenceId;
					c = (ConfigEntity)ip.next();
					String name = c.getName();
					String value = c.getValue();
			%>
			
			<tr>
				<td class=tablebody2 valign=middle align=center width=""><%=presenceId%></td>
				<td class=tablebody1 valign=middle width=""><%=name%></td>
				<td class=tablebody2 align="center" valign=middle width=""><%=value%></td>
			</tr>
			<%
				}
			%>
		</table>
		
		<!--文件尾开始-->
		<table width="100%" border="0" cellspacing="0" cellpadding="0"
			align="center" height="28">
			<tr>
				<td height="17" background="images/bot_bg.gif">
				</td>
			</tr>
		</table>
		<table width="100%" border="0" cellspacing="0" cellpadding="0"
			align="center">
			<tr>
				<td bgcolor="#f1f1f6" height="53" valign="center">
					<p align="center">
						Copyright &copy;2009 - 2011
						<a href="http://www.nokiasiemensnetworks.com/"><b><font
								face="Verdana,">nsn.com.cn</font>
						</b>
						<br>
				</td>
			</tr>
		</table>
	</body>
</html>